// Copyright (C) Kumo inc. and its affiliates.
// Author: Jeff.li lijippy@163.com
// All rights reserved.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.
//

package model

import (
	"errors"
)

var (
	// ErrorConflict indicates manifest conflict
	ErrorConflict = errors.New("manifest conflict")
	// ErrorMissingKey indicates that the private key is missing
	ErrorMissingKey = errors.New("the private key is missing")
	// ErrorMissingOwner indicates that the owner is not found
	ErrorMissingOwner = errors.New("owner not found")
	// ErrorWrongSignature indicates that the signature is not correct
	ErrorWrongSignature = errors.New("invalid signature")
	// ErrorWrongChecksum indicates that the checksum of tar file is not correct
	ErrorWrongChecksum = errors.New("checksum mismatch")
	// ErrorWrongFileName indicates that the name of tar file is not correct
	ErrorWrongFileName = errors.New("incorrect file name")
	// ErrorWrongManifestType indicates that the manifest type is not expected
	ErrorWrongManifestType = errors.New("the manifest type is not expected")
	// ErrorWrongManifestVersion indicates that the manifest version is not expected
	ErrorWrongManifestVersion = errors.New("the manifest version is not expected")
)
